package com.gblfy.service;

import org.flowable.engine.runtime.ProcessInstance;

import javax.servlet.http.HttpServletResponse;
import java.util.Map;

/**
 * 流程服务类
 */
public interface IFlowService {
    /**
     * 部署工作流
     */
    Map<String,Object> createFlow(String filePath);


    /**
     * 启动工作流
     */
    ProcessInstance strartFlow(String processKey, Map<String,Object> paras);


    /**
     * 生成流程图
     */
    void genProcessDiagram(HttpServletResponse httpServletResponse, String processId) ;

    /**
     * 查询流程是否完成
     */
    boolean isFinished(String processInstanceId);



}
